var windowH = $(window).height();
/**
 * [resizeModel 根据窗口调整大小]
 * @param  {[type]} windowH [description]
 * @return {[type]}         [description]
 */
function resizeModel(windowH) {
    $('.need-resize').each(function() {
        var $this = $(this);
        var height = windowH-$this.offset().top-15;
        $this.css('height',height);
    })
    $('#map-img').height($('#map-gd').height());
}
/**
 * [resizeChart 根据窗口调整图表大小]
 * @param  {[type]} chart [图表对象]
 * @return {[type]}    [description]
 */
function resizeChart(chart) {
    window.addEventListener('resize', function() {
        chart.resize();
    })
}